<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditRioTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" styleClass="ajustaListaMensagemErro"  layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="list"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditRioLabel_rioCd}" for="rioCd" />
                    <p:inputText id="rioCd" value="#{rioController.selected.rioCd}" title="#{bundle.EditRioTitle_rioCd}" required="true" requiredMessage="#{bundle.EditRioRequiredMessage_rioCd}"/>
                    <h:outputLabel value="#{bundle.EditRioLabel_rioId}" for="rioId" />
                    <p:inputText id="rioId" value="#{rioController.selected.rioId}" title="#{bundle.EditRioTitle_rioId}" />
                    <h:outputLabel value="#{bundle.EditRioLabel_rioNmLigacao}" for="rioNmLigacao" />
                    <p:inputText id="rioNmLigacao" value="#{rioController.selected.rioNmLigacao}" title="#{bundle.EditRioTitle_rioNmLigacao}" />
                    <h:outputLabel value="#{bundle.EditRioLabel_rioNm}" for="rioNm" />
                    <p:inputText id="rioNm" value="#{rioController.selected.rioNm}" title="#{bundle.EditRioTitle_rioNm}" />
                    <h:outputLabel value="#{bundle.EditRioLabel_rioNmCompleto}" for="rioNmCompleto" />
                    <p:inputText id="rioNmCompleto" value="#{rioController.selected.rioNmCompleto}" title="#{bundle.EditRioTitle_rioNmCompleto}" />
                    <h:outputLabel value="#{bundle.EditRioLabel_rioDiRioKm}" for="rioDiRioKm" />
                    <p:inputText id="rioDiRioKm" value="#{rioController.selected.rioDiRioKm}" title="#{bundle.EditRioTitle_rioDiRioKm}" />
                    <h:outputLabel value="#{bundle.EditRioLabel_rioDiFozKm}" for="rioDiFozKm" />
                    <p:inputText id="rioDiFozKm" value="#{rioController.selected.rioDiFozKm}" title="#{bundle.EditRioTitle_rioDiFozKm}" />
                    <h:outputLabel value="#{bundle.EditRioLabel_rioCrLongDe}" for="rioCrLongDe" />
                    <p:inputText id="rioCrLongDe" value="#{rioController.selected.rioCrLongDe}" title="#{bundle.EditRioTitle_rioCrLongDe}" />
                    <h:outputLabel value="#{bundle.EditRioLabel_rioCrLatDe}" for="rioCrLatDe" />
                    <p:inputText id="rioCrLatDe" value="#{rioController.selected.rioCrLatDe}" title="#{bundle.EditRioTitle_rioCrLatDe}" />
                    <h:outputLabel value="#{bundle.EditRioLabel_rioCrLongPara}" for="rioCrLongPara" />
                    <p:inputText id="rioCrLongPara" value="#{rioController.selected.rioCrLongPara}" title="#{bundle.EditRioTitle_rioCrLongPara}" />
                    <h:outputLabel value="#{bundle.EditRioLabel_rioCrLatPara}" for="rioCrLatPara" />
                    <p:inputText id="rioCrLatPara" value="#{rioController.selected.rioCrLatPara}" title="#{bundle.EditRioTitle_rioCrLatPara}" />
                    <h:outputLabel value="#{bundle.EditRioLabel_rioDtAtualizacao}" for="rioDtAtualizacao" />
                    <p:inputText id="rioDtAtualizacao" value="#{rioController.selected.rioDtAtualizacao}" title="#{bundle.EditRioTitle_rioDtAtualizacao}" >
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </p:inputText>
                    <h:outputLabel value="#{bundle.EditRioLabel_rioAa}" for="rioAa" />
                    <p:inputText id="rioAa" value="#{rioController.selected.rioAa}" title="#{bundle.EditRioTitle_rioAa}" />
                    <h:outputLabel value="#{bundle.EditRioLabel_rioEs}" for="rioEs" />
                    <p:inputText id="rioEs" value="#{rioController.selected.rioEs}" title="#{bundle.EditRioTitle_rioEs}" />
                    <h:outputLabel value="#{bundle.EditRioLabel_rioFo}" for="rioFo" />
                    <p:inputText id="rioFo" value="#{rioController.selected.rioFo}" title="#{bundle.EditRioTitle_rioFo}" />
                    <h:outputLabel value="#{bundle.EditRioLabel_rioGmLinha}" for="rioGmLinha" />
                    <p:inputText id="rioGmLinha" value="#{rioController.selected.rioGmLinha}" title="#{bundle.EditRioTitle_rioGmLinha}" />
                </h:panelGrid>
                <h:commandLink action="#{rioController.update}" value="#{bundle.EditRioSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditRioViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{rioController.prepareList}" value="#{bundle.EditRioShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditRioIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
